package com.example.demo.nuoqi.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/****
 * @Author:shenkunlin
 * @Description:Itemdetails构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "Itemdetails",value = "Itemdetails")
@Table(name="itemdetails")
public class Itemdetails implements Serializable{

	@ApiModelProperty(value = "",required = false)
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
	private Integer id;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "itemName")
	private String itemName;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "itemIntroduction")
	private String itemIntroduction;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "technicalDirection")
	private String technicalDirection;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "createPerson")
	private String createPerson;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "principal")
	private String principal;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "itemPersonNum")
	private Integer itemPersonNum;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "participant")
	private String participant;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "itemStatus")
	private String itemStatus;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "timeCycle")
	private String timeCycle;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "createTime")
	private Date createTime;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "endTime")
	private Date endTime;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "userId")
	private Integer userId;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "itemClaim")
	private String itemClaim;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "professionId")
	private Integer professionId;//

	@Transient
	private String direcTionName;

	@Transient
	private List<participantTemp> participantTemp;


	public List<Itemdetails.participantTemp> getParticipantTemp() {
		return participantTemp;
	}

	public void setParticipantTemp(List<Itemdetails.participantTemp> participantTemp) {
		this.participantTemp = participantTemp;
	}

	public String getDirecTionName() {
		return direcTionName;
	}

	public void setDirecTionName(String direcTionName) {
		this.direcTionName = direcTionName;
	}

	//get方法
	public Integer getId() {
		return id;
	}

	//set方法
	public void setId(Integer id) {
		this.id = id;
	}
	//get方法
	public String getItemName() {
		return itemName;
	}

	//set方法
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	//get方法
	public String getItemIntroduction() {
		return itemIntroduction;
	}

	//set方法
	public void setItemIntroduction(String itemIntroduction) {
		this.itemIntroduction = itemIntroduction;
	}
	//get方法
	public String getTechnicalDirection() {
		return technicalDirection;
	}

	//set方法
	public void setTechnicalDirection(String technicalDirection) {
		this.technicalDirection = technicalDirection;
	}
	//get方法
	public String getCreatePerson() {
		return createPerson;
	}

	//set方法
	public void setCreatePerson(String createPerson) {
		this.createPerson = createPerson;
	}
	//get方法
	public String getPrincipal() {
		return principal;
	}

	//set方法
	public void setPrincipal(String principal) {
		this.principal = principal;
	}
	//get方法
	public Integer getItemPersonNum() {
		return itemPersonNum;
	}

	//set方法
	public void setItemPersonNum(Integer itemPersonNum) {
		this.itemPersonNum = itemPersonNum;
	}
	//get方法
	public String getParticipant() {
		return participant;
	}

	//set方法
	public void setParticipant(String participant) {
		this.participant = participant;
	}
	//get方法
	public String getItemStatus() {
		return itemStatus;
	}

	//set方法
	public void setItemStatus(String itemStatus) {
		this.itemStatus = itemStatus;
	}
	//get方法
	public String getTimeCycle() {
		return timeCycle;
	}

	//set方法
	public void setTimeCycle(String timeCycle) {
		this.timeCycle = timeCycle;
	}
	//get方法
	public Date getCreateTime() {
		return createTime;
	}

	//set方法
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	//get方法
	public Date getEndTime() {
		return endTime;
	}

	//set方法
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	//get方法
	public Integer getUserId() {
		return userId;
	}

	//set方法
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	//get方法
	public String getItemClaim() {
		return itemClaim;
	}

	//set方法
	public void setItemClaim(String itemClaim) {
		this.itemClaim = itemClaim;
	}
	//get方法
	public Integer getProfessionId() {
		return professionId;
	}

	//set方法
	public void setProfessionId(Integer professionId) {
		this.professionId = professionId;
	}


public static class  participantTemp {
		private Integer userId;
		private String userName;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}


//	@Override
//	public String toString() {
//		return "participantTemp{" +
//				"userId=" + userId +
//				", userName='" + userName + '\'' +
//				'}';
//	}
}


}

